FROM node:10.0


RUN mkdir -p /home/weidongxin/vue

WORKDIR /home/weidongxin/vue

COPY . /home/weidongxin/vue

EXPOSE 80

# RUN npm install -g npm@latest \
#   && npm install \
#   && npm run build \
#   && cp -r dist/* /home/weidongxin/ \
#   && rm -rf /app

# CMD [ "nginx", "-g", "daemon off" ]